package com.baylor.server.business.service;

import java.util.Map;

import com.baylor.server.business.common.ResultModel;
import com.baylor.server.business.exception.BusinessException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.baylor.server.business.entity.Customer;

public interface CustomerService {


    /**公有分页查询*/
    Page<Customer> getCustomerByCondition(
            Map<String, Object> filterParams, Pageable pageable);


    /*******-------------web端方法开始------------------********/

    /*******-------------web端方法结束------------------********/



    /*******-------------APP接口方法开始------------------********/
    /**注册*/
    void customerRegister(Customer customer) throws BusinessException;
    /**登陆*/
    void customerLogin(String loginAccount,String loginPassword);
    /**修改密码*/
    void changePassword(String loginAccount,String oldPassword,String newPassword);
    /**根据手机修改密码*/
    void changePwdByCellPhone();
    /**根据邮箱修改密码*/
    void changePwdByEmail();
    /**根据id查询*/
    Customer getCustomerById();
    /*******-------------APP接口方法结束------------------********/

}
